package com.maiji.cloud.microservice;

import com.maiji.cloud.entities.login.AreaInfo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Map;

@FeignClient(value = "MAIJICLOUD-APPLOGIN")
public interface AreaInfoService extends MicroService<AreaInfo>{

    @PostMapping("/areaInfo/saveAreaInfo")
    Boolean saveAreaInfo(@RequestBody AreaInfo areaInfo);

    @GetMapping("/areaInfo/getAreaInfoById/{areaInfoId}")
    AreaInfo getAreaInfoById(@PathVariable(name = "areaInfoId") String areaInfoId);

    @PostMapping("/areaInfo/updateAreaInfo")
    Boolean updateAreaInfo(@RequestBody AreaInfo areaInfo);

    @Override
    @PostMapping("/areaInfo/selectList")
    List<AreaInfo> selectList (@RequestBody Map<String, Object> map);

}
